// 角色-菜单关联模型
module.exports = (sequelize, Sequelize) => {
    return sequelize.define("roles_menus", {
        id: {
            type: Sequelize.UUID,
            notNull: true,
            primaryKey: true,
            defaultValue: Sequelize.UUIDV4,
        },
        roleId: {
            type: Sequelize.STRING,
            notNull: true,
            allowNull:false,
            comment: '角色ID',
            // index:true,
            // field:'role_id',
        },
        menuIds: {
            type: Sequelize.STRING,
            comment: '菜单ID',
            allowNull:false,
            // index:true,
            // field:'menu_ids',
        },
    })
};